#pragma once

#include "../QRSWidgetBase.h"
#include "ui_QUncoverFaceOperation.h"
#include "Render/QIVtkSelectionPipeline.h"

QT_BEGIN_NAMESPACE
namespace Ui { class QUncoverFaceOperationClass; };
QT_END_NAMESPACE

class MainWindow;
class ShapeOperation;

class QUncoverFaceOperation : public QRSWidgetBase
{
	Q_OBJECT

public:
	QUncoverFaceOperation(MainWindow* inMainWindow, ShapeOperation* inOperation = nullptr, QWidget* parent = nullptr);
	~QUncoverFaceOperation();

protected:
	void OnSelectedSubShapes(QIVtkSelectionPipeline* actor);
	virtual void closeEvent(QCloseEvent* event) override;

	void OnModify();
	void OnConfirm();

	void UncoverInner();

private:
	Ui::QUncoverFaceOperationClass* ui;

	QIVtkSelectionPipeline* m_selectedActor = nullptr;
};
